package org.dromara.business.domain.vo;

import java.math.BigDecimal;
import org.dromara.business.domain.WalletChange;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 钱包变动记录视图对象 wallet_change
 *
 * @author zlj
 * @date 2024-08-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WalletChange.class)
public class WalletChangeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 钱包余额变化表
     */
    @ExcelProperty(value = "钱包余额变化表")
    private Long walletChangeId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 变化类型（0.增加 1.减少）
     */
    @ExcelProperty(value = "变化类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=.增加,1=.减少")
    private Integer changeType;

    /**
     * 变化值
     */
    @ExcelProperty(value = "变化值")
    private BigDecimal changeCount;

    /**
     * 变化前的值
     */
    @ExcelProperty(value = "变化前的值")
    private BigDecimal changeBefore;

    /**
     * 变化后的值
     */
    @ExcelProperty(value = "变化后的值")
    private BigDecimal changeAfter;


}
